#Form 1
i = 1
j = 1
for i in range(1,10):
    for j in range(1,i + 1):
      print(f"{j} * {i} = {j * i}\t", end=' ')
    print()

print("-"*150)

#Form 2
i = 9
j = 9
for i in range(9,0, -1):
    for j in range(i,0, -1):
        print(f"{i} * {j} = {j * i}\t", end=' ')
    print()

print("-"*150)

#Form 3
for i in range(1, 10):
    for k in range(1, i):
        print(end="            ")
    for j in range(i, 10):
        print("%d * %d = %2d" % (i, j, i*j), end='\t')
    print('')

print("-" * 150)

#Form 4
for i in range(9, 0, -1):
    for k in range(1, i):
        print(end="            ")
    for j in range(i, 10):
        print("%d * %d = %2d" % (i, j, i*j), end='\t')
    print('')

print("-" * 150)
